<div class="testimonials form">
<?php echo $this->ExtendedForm->create('Testimonial', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Testimonial'); ?></h3>
	<?php
		if(isset($this->request->params['named']['id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('id', array_merge(array('label' => __d('admin', 'Id'))));
		if(isset($this->request->params['named']['id'])) echo '</div>';

		if(isset($this->request->params['named']['author'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('author', array_merge(array('label' => __d('admin', 'Author'))));
		if(isset($this->request->params['named']['author'])) echo '</div>';
        
		if(isset($this->request->params['named']['description'])) echo '<div style="display: none;">';
		echo $this->Form->input('Testimonial.description', array_merge(array('type' => 'textarea','label' => __d('admin', 'Description'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['description'])) echo '</div>';

		if(isset($this->request->params['named']['description_eng'])) echo '<div style="display: none;">';
		echo $this->Form->input('Testimonial.description_eng', array_merge(array('type' => 'textarea','label' => __d('admin', 'Description Eng'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['description_eng'])) echo '</div>';

		if(isset($this->request->params['named']['description_jpn'])) echo '<div style="display: none;">';
		echo $this->Form->input('Testimonial.description_jpn', array_merge(array('type' => 'textarea','label' => __d('admin', 'Description Jpn'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['description_jpn'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Testimonial'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>